ripemd160 0.8.0

RIPEMD-160 hash function
Documentation

An implementation of the RIPEMD-160 cryptographic hash.

Usage

# #[macro_use] extern crate hex_literal;
# extern crate ripemd160;
# fn main() {
use ripemd160::{Ripemd160, Digest};

// create a RIPEMD-160 hasher instance
let mut hasher = Ripemd160::new();

// process input message
hasher.input(b"Hello world!");

// acquire hash digest in the form of GenericArray,
// which in this case is equivalent to [u8; 20]
let result = hasher.result();
assert_eq!(result[..], hex!("7f772647d88750add82d8e1a7a3e5c0902a346a3"));
# }

Also see RustCrypto/hashes readme.